<?php
class ServiceController extends AppController
{
	public $name = 'Service';

	public function index()
	{

	}

	public function feedback()
	{
        App::uses('Feedback', 'Model');
        $feedback = new Feedback();
        if ($feedback->save($this->request->data)) {
            die('ok');
        } else {
            if(!empty($feedback->validationErrors)) {
                die(json_encode($feedback->validationErrors)); 
            }
        }

	}
}
